// 统一请求路径前缀在libs/axios.js中修改
import { getRequest, postRequest, putRequest, deleteRequest, importRequest, getRequestWithNoToken } from '@/libs/axios';

// 获取IP分类数据 多条件
export const getIpTypeList = (params) => {
    return getRequest('/ipType/getByCondition', params)
}
// 获取全部IP分类数据
export const getAllIpType = (params) => {
    return getRequest('/ipType/findAll', params)
}
// 添加IP分类
export const addIpType = (params) => {
    return postRequest('/ipType/add', params)
}
// 编辑IP分类
export const editIpType = (params) => {
    return postRequest('/ipType/edit', params)
}
// 删除IP分类
export const deleteIpType = (ids, params) => {
    return deleteRequest(`/ipType/delByIds/${ids}`, params)
}


// 获取IP分类配置信息
export const getIpTypeSetting = (params) => {
    return getRequest('/ipTypeSetting/get', params)
}
// 更新IP分类配置信息
export const updateIpTypeSetting = (params) => {
    return postRequest('/ipTypeSetting/update', params)
}